home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / MCPPCBuildAll < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.1 KB  |  83 lines  |  [TEXT/MPS ]

  1. # Full build script for MRC PPC
  2. #
  3. #    MCPPCBuildAll [Debug|Release] [Clean] [NoExamples]
  4. #
  5. # This script assumes that you have placed UserStartup•ODF in your MPW folder.
  6. #
  7. # NOTE: The CyberStarter example is not currently built due to a lack of native
  8. # C++ exception handling which is required. However, you can build this example
  9. # Metrowerks CodeWarrior compiler.
  10.  
  11. if "{ODF}" == ""
  12.     Beep
  13.     Beep
  14.     Echo "### MCPPCBuildAll"
  15.     Echo "### You have not installed the 'UserStartup•ODF' file (or 'UserStartupTS•ODF' for ToolServer)." 
  16.     Echo "### Please do so before continuing. Those files are located in the 'Getting Starter' folder" 
  17.     Echo "### Don't forget to relaunch MPW (or ToolServer)." 
  18.     exit
  19. end
  20.  
  21. Set TheBuild ""
  22. Set Clean 0
  23. Set Examples 1
  24.  
  25. For item in {Parameters}
  26.     if {item} == Debug
  27.         Set TheBuild Debug
  28.     else if {item} == debug
  29.         Set TheBuild Debug
  30.     else if {item} == Release
  31.         Set TheBuild Release
  32.     else if {item} == release
  33.         Set TheBuild Release
  34.     else if {item} == Clean
  35.         Set Clean 1
  36.     else if {item} == clean
  37.         Set Clean 1
  38.     else if {item} == NoExamples
  39.         Set Examples 0
  40.     else if {item} == noexamples
  41.         Set Examples 0
  42.     else if {item} == Noexamples
  43.         Set Examples 0
  44.     else 
  45.         Echo "MCPPCBuildAll [Debug|Release] [Clean] [NoExamples]"
  46.         exit
  47.     end
  48. End
  49.  
  50. if {TheBuild} == ""
  51.     Set TheBuild Debug
  52. end
  53.  
  54. Set Exit 0
  55. if {Clean} == 1
  56.     Echo "# `Date -t` ----- Cleaning PPC object files."
  57.     Delete -y `Files -f -s "{ODF}MCPPC{TheBuild}:Obj:" ≥≥ Dev:NULL` ≥≥ Dev:NULL
  58.     if {Examples} == 1
  59.         For example In ColorExtension Bitmap Button Clock Container Draw Embed Form Hello Nothing Table ViewTester
  60.             Delete -y `Files -f -s "{ODFDev}{example}:MCPPC{TheBuild}:Obj:" ≥≥ Dev:NULL`  ≥≥ Dev:NULL
  61.         End
  62.     End
  63. End
  64.  
  65. Set Exit 1
  66.  
  67. Echo "# `Date -t` ----- Starting PPC build."
  68.  
  69. # ----- Build ODF Shared Library
  70. # The shared library is built using CodeWarrior.
  71.  
  72. # ----- Build ODF Static Libraries
  73. "{ODF}MCPPC{TheBuild}:Build"
  74.  
  75. # ----- Build ODF Samples
  76. if {Examples} == 1
  77.     For example In ColorExtension Bitmap Button Clock Container Draw Embed Form Hello Nothing Table ViewTester
  78.         "{ODFDev}{example}:MCPPC{TheBuild}:Build"
  79.     End
  80. End
  81.  
  82. Echo "# `Date -t` ----- Finished PPC build."
  83.